package cn.ligui.exportsis;

import cn.ligui.exportsis.service.DataSyncService;
import lombok.extern.slf4j.Slf4j;

import java.io.IOException;
import java.text.ParseException;

/**
 * @Author: ligui
 * @CreateTime: 2024-12-03 10:54
 * @Description:
 */
@Slf4j
public class Main {

    public static void main(String[] args) throws ParseException, IOException {
//        DataSyncService.getData("2024-12-03", "2024-12-04");
        if (args != null && args.length == 2) {
            String startDateStr = args[0];
            String endDateStr = args[1];

            DataSyncService.getData(startDateStr, endDateStr);
        } else {
            log.error("Input start date and end date");
        }
        log.info("End of execution");
    }
}
